﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Configuration;

namespace TrainingWorkshop.DALFactory
{
    public class ApplicationContext
    {
  
        //createFactory 
        public IFactory CreateFactory(string factoryName) {
            switch (factoryName)
            {
                case "SQL": return new SqlFactory();
                case "EF": return new EFFactory();
                default:   return  new SqlFactory();

            }

        }
    }
}
